home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 001-025 / disk_005 / input.dev / handler.interface.asm next >
Assembly Source File  |  1992-05-06  |  2KB  |  53 lines

  1. *
  2. *    DISCLAIMER:
  3. *
  4. *    This program is provided as a service to the programmer
  5. *    community to demonstrate one or more features of the Amiga
  6. *    personal computer.  These code samples may be freely used
  7. *    for commercial or noncommercial purposes.
  8. *     Commodore Electronics, Ltd ("Commodore") makes no
  9. *    warranties, either expressed or implied, with respect
  10. *    to the program described herein, its quality, performance,
  11. *    merchantability, or fitness for any particular purpose.
  12. *    This program is provided "as is" and the entire risk
  13. *    as to its quality and performance is with the user.
  14. *    Should the program prove defective following its
  15. *    purchase, the user (and not the creator of the program,
  16. *    Commodore, their distributors or their retailers)
  17. *    assumes the entire cost of all necessary damages.  In 
  18. *    no event will Commodore be liable for direct, indirect,
  19. *    incidental or consequential damages resulting from any
  20. *    defect in the program even if it has been advised of the 
  21. *    possibility of such damages.  Some laws do not allow
  22. *    the exclusion or limitation of implied warranties or
  23. *    liabilities for incidental or consequential damages,
  24. *    so the above limitation or exclusion may not apply.
  25. *
  26.  
  27. *************************************************************************
  28. *   HandlerInterface()
  29. *
  30. *   This code is needed to convert the calling sequence performed by
  31. *   the input.task for the input stream management into something
  32. *   that a C program can understand.
  33. *
  34. *   This routine expects a pointer to an InputEvent in A0, a pointer
  35. *   to a data area in A1.  These values are transferred to the stack
  36. *   in the order that a C program would need to find them.  Since the
  37. *   actual handler is written in C, this works out fine. 
  38. *
  39. *   Author: Rob Peck, 12/1/85
  40. *
  41.     XREF    _myhandler
  42.     XDEF    _HandlerInterface
  43.  
  44. _HandlerInterface:
  45.     MOVEM.L    A0/A1,-(A7)
  46.     JSR        _myhandler
  47.     ADDQ.L    #8,A7
  48.     RTS
  49.  
  50.     END
  51.  
  52.